package com.neusoft;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
// @EnableEurekaClient
@EnableFeignClients // 开启 Spring Cloud Feign的支持功能
public class ConsumerServer12000Application {

    // @LoadBalanced   // 负载均衡
    // @Bean
    // public RestTemplate getRestTemplate(){
    //     return new RestTemplate();
    // }

    public static void main(String[] args) {
        SpringApplication.run(ConsumerServer12000Application.class, args);
    }

}
